<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:a="http://richfaces.org/a4j">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<head>
	<style type="text/css">
		#child{
			display:none;
		}
		.back {
			padding-left: 18px;
		}
	</style>
	<script language="javascript" type="text/javascript">
		function changeShow(obj){
			$(obj).style.display = ($(obj).style.display == 'block')?'none':'block';
		}
		function $(obj){
			return document.getElementById(obj);
		}
	</script>
</head>
<body>
	<p>&nbsp;&nbsp;&nbsp;<s:link  view="/admin/main/ship.xhtml"  value="处理订单" target="mainFrame" /></p>
	<p>&nbsp;&nbsp;&nbsp;<s:link  view="/admin/main/addProduct.xhtml" action = "#{addProduct.start}" value="添加商品" target="mainFrame" /></p>
	
	<p><a href="javascript:void(0)"><div id="attr" onclick="changeShow('child')">&nbsp;&nbsp;&nbsp;+ 操作商品属性</div></a></p>
	<div id="child">
		<p>&nbsp;&nbsp;&nbsp;<s:link  view="/admin/main/addAttribute.xhtml" action = "#{addAttribute.start}" value="- 添加商品属性" styleClass="back" target="mainFrame" /> </p>
		<p>&nbsp;&nbsp;&nbsp;<s:link  view="/admin/main/addAttributeValue.xhtml" action = "#{addAttributeValue.start}" value="- 添加商品属性值" styleClass="back" target="mainFrame" /> </p>
	</div>
</body>

</html>